package com.can.Service;

import io.seata.rm.tcc.api.BusinessActionContext;
import io.seata.rm.tcc.api.BusinessActionContextParameter;
import io.seata.rm.tcc.api.LocalTCC;
import io.seata.rm.tcc.api.TwoPhaseBusinessAction;

@LocalTCC
public interface MqTccService {
    @TwoPhaseBusinessAction(name = "mqPrepare", commitMethod = "mqCommit", rollbackMethod = "mqCancel")
    boolean mqPrepare(@BusinessActionContextParameter(paramName = "userId") int userId);
    boolean mqCommit(BusinessActionContext context);
    boolean mqCancel(BusinessActionContext context);
}